//
//  ORMYCollectionViewCell.m
//  NewsWith
//
//  Created by rimi on 2016/12/14.
//  Copyright © 2016年 dongfumei. All rights reserved.
//

#import "ORMYCollectionViewCell.h"

@implementation ORMYCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    
    self=[super initWithFrame:frame];
    if (self) {
        
        [self.contentView addSubview:self.picImageView];
        [self.contentView addSubview:self.srcName];
    }
    
    return self;
}

- (UIImageView *)picImageView{
    
    if (!_picImageView) {
        _picImageView=[[UIImageView alloc]initWithFrame:AAdaptionRect(0, 0, 100, 60)];
    }
    
    return _picImageView;
}


- (UILabel *)srcName{
    if (!_srcName) {
        _srcName=[[UILabel alloc]initWithFrame:AAdaptionRect(0, CGRectGetMaxY(self.picImageView.frame)/AAdaptationWidth()+5, 100, 15)];
        _srcName.textColor=[UIColor darkGrayColor];
        _srcName.textAlignment = NSTextAlignmentCenter;
        _srcName.font = AAFont(13);
    }
    
    return _srcName;
}

@end
